package module.function;

import common.util.spring.SpringContextHolder;
import module.model.AssessmentItemModel;
import module.model.AssessmentStandardValueModel;
import module.service.AssessmentItemService;
import module.service.AssessmentStandardValueService;

import java.util.ArrayList;
import java.util.List;

/**
 * 评估标签方法
 */
public class EvaluationFunction {
    public static List<AssessmentItemModel> getAssessmentItemModelByDataId(Long dataId,Long formId){
        AssessmentItemService assessmentItemService = SpringContextHolder.getBean(AssessmentItemService.class);
        return assessmentItemService.getAssessmentItemModelList(dataId,formId);
    }

    public static List<AssessmentStandardValueModel> geAssessmentStandardValueModelByDataId(Long dataId){
        AssessmentStandardValueService assessmentStandardValueService = SpringContextHolder.getBean(AssessmentStandardValueService.class);
        return assessmentStandardValueService.getAssessmentStandardValueByDataId(dataId);
    }
}
